<?php

//global $cfg;
$ini_array = parse_ini_file("config.ini");

require_once ($ini_array['dirroot'] . '/CFG.php');

$cfg = new CFG();
$cfg->dbmethod = $ini_array['dbmethod'];
$cfg->hostname = $ini_array['hostname'];
$cfg->username = $ini_array['username'];
$cfg->password = $ini_array['password'];
$cfg->dbname = $ini_array['dbname'];
$cfg->cmttable = $ini_array['cmttblname'];
$cfg->msgtable = $ini_array['msgtblname'];
$cfg->dirroot = $ini_array['dirroot'];

require_once ($cfg->dirroot . '/MySQLDB.php');
require_once ($cfg->dirroot . '/PDODB.php');
require_once ($cfg->dirroot . '/CSVDB.php');
require_once ($cfg->dirroot . '/HTMLGenerate.php');
